
public class Observacion 
{
	private short posX;  // posicion actual
	private short posY;
	
	private short goalX;
	private short goalY;
	
	public Observacion(int posX, int posY, int goalX, int goalY)
	{
		this.posX = (short)posX;
		this.posY = (short)posY;
		this.goalX = (short)goalX;
		this.goalY = (short)goalY;
	}

	public short getPosX() {
		return posX;
	}
	
	public short getPosY() {
		return posY;
	}
	
	public short getGoalX() {
		return goalX;
	}
	
	public short getGoalY() {
		return goalY;
	}
	
	
	
	public short getDistanciaX(){
		return (short) (goalX-posX);
	}
	public short getDistanciaY(){
		return (short) (goalY-posY);
	}
	
	
	
}